clear;

R=240;
C=33e-12;
tau=R*C;

T=tau/100;


t=0:T:(3*tau);
N=length(t);
omega=10e+8;

u=zeros(size(t));

E = randn(1, N);
for k=2:N;
    
    if E(k)>=0
        u(k)=u(k-1)+T*E(k)/tau-T*u(k-1)/tau;
    else 
        u(k)=u(k-1);
    
    end;
end

plot(t,u);
% 
% X=randn(1,N)+1i*randn(1,N);
% Y=X*u(k);
% figure(2);
% plot(t,Y);

